package com.tanhua.sso.controller;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.http.ResponseEntity;
import org.springframework.web.bind.annotation.*;
import org.springframework.web.multipart.MultipartFile;

/**
 * @description:
 * @author: Administrator
 * @date: Created in 2021/3/2 14:08
 * @version: 0.0.1
 * @modified By:
 */
@RestController
@RequestMapping("users")
public class UsersController {
    @Autowired
    private UserInfoController userInfoController;

    @PostMapping("header")
    public ResponseEntity<Object>saveLogo(@RequestParam("headPhoto")MultipartFile file,@RequestHeader("Authorization") String token){
        return this.userInfoController.saveUserLogo(file,token);
    }
}
